package com.fire.user.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 短信记录表
 * </p>
 *
 * @author MIT123
 * @since 2018-05-28
 */
@TableName("t_mit_record_sms")
public class RecordSms extends Model<RecordSms> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增长索引
     */
    @TableId(value = "smsseq", type = IdType.AUTO)
    private Integer smsseq;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 发送模块，业务自定义
     */
    private String who;
    /**
     * 发送手机
     */
    private String phone;
    /**
     * 发送内容
     */
    private String context;
    /**
     * 0 成功，1失败
     */
    private Integer status;


    public Integer getSmsseq() {
        return smsseq;
    }

    public void setSmsseq(Integer smsseq) {
        this.smsseq = smsseq;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.smsseq;
    }

    @Override
    public String toString() {
        return "RecordSms{" +
        "smsseq=" + smsseq +
        ", createtime=" + createtime +
        ", who=" + who +
        ", phone=" + phone +
        ", context=" + context +
        ", status=" + status +
        "}";
    }
}
